package accountManagement;

public class Employee extends Account {
	private static final long serialVersionUID = 5715800408135391633L;
	
	private String employeeId;

	public Employee() {
		super();
	}
	
	public Employee(String nickname, String password, String employeeId) {
		super(nickname, password);
		this.setEmployeeId(employeeId);
	}

	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String codiceOperatore) {
		this.employeeId = codiceOperatore;
	}
	
	@Override
	public boolean equals(Object object) {
		return object instanceof Employee && super.equals((Employee)object);
	}
	
	@Override
	public String toString() {
		return "Employee[" + super.toString() + 
				";EmployeeId:" + getEmployeeId() + 
				"]";
	}
}